home *** CD-ROM | disk | FTP | other *** search
/ Grand Slam 3 / Grand Slam 3.iso / 047 / jpegfaq.arj / JPEGFAQ.TXT
Text File  |  1995-03-21  |  77KB  |  1,477 lines

  1.  
  2. Archive-name: jpeg-faq/part1
  3. Posting-Frequency: every 14 days
  4. Last-modified: 5 March 1995
  5.  
  6. This article answers Frequently Asked Questions about JPEG image compression.
  7. This is part 1, covering general questions and answers about JPEG.  Part 2
  8. gives system-specific hints and program recommendations.  As always,
  9. suggestions for improvement of this FAQ are welcome.
  10.  
  11. New since version of 13 November 1994:
  12.   * Split the FAQ into two parts since it was approaching 64K.
  13.   * Reformatted the FAQ to look better in the WWW FAQ archives.
  14.   * New sections about progressive JPEG and M-JPEG.
  15.  
  16.  
  17. This article includes the following sections:
  18.  
  19. Basic questions:
  20.  
  21. [1] What is JPEG?
  22. [2] Why use JPEG?
  23. [3] When should I use JPEG, and when should I stick with GIF?
  24. [4] How well does JPEG compress images?
  25. [5] What are good "quality" settings for JPEG?
  26. [6] Where can I get JPEG software?
  27. [7] How do I view JPEG images posted on Usenet?
  28.  
  29. More advanced questions:
  30.  
  31. [8] What is color quantization?
  32. [9] What are some rules of thumb for converting GIF images to JPEG?
  33. [10] Does loss accumulate with repeated compression/decompression?
  34. [11] What is progressive JPEG?
  35. [12] Isn't there a lossless JPEG?
  36. [13] Why all the argument about file formats?
  37. [14] How do I recognize which file format I have, and what do I do about it?
  38. [15] How does JPEG work?
  39. [16] What about arithmetic coding?
  40. [17] Could an FPU speed up JPEG?  How about a DSP chip?
  41. [18] Isn't there an M-JPEG standard for motion pictures?
  42.  
  43. Miscellaneous:
  44.  
  45. [19] Where are FAQ lists archived?
  46.  
  47.  
  48. This article and its companion are posted every 2 weeks.  If you can't find
  49. part 2, you can get it from the news.answers archive at rtfm.mit.edu
  50. (see "[19] Where are FAQ lists archived?").  Part 2 changes very frequently;
  51. get a new copy if the one you are reading is more than a couple months old.
  52.  
  53. ------------------------------
  54.  
  55. Subject: [1] What is JPEG?
  56.  
  57. JPEG (pronounced "jay-peg") is a standardized image compression mechanism.
  58. JPEG stands for Joint Photographic Experts Group, the original name of the
  59. committee that wrote the standard.
  60.  
  61. JPEG is designed for compressing either full-color or gray-scale images
  62. of natural, real-world scenes.  It works well on photographs, naturalistic
  63. artwork, and similar material; not so well on lettering, simple cartoons,
  64. or line drawings.  JPEG handles only still images, but there is a related
  65. standard called MPEG for motion pictures.
  66.  
  67. JPEG is "lossy," meaning that the decompressed image isn't quite the same as
  68. the one you started with.  (There are lossless image compression algorithms,
  69. but JPEG achieves much greater compression than is possible with lossless
  70. methods.)  JPEG is designed to exploit known limitations of the human eye,
  71. notably the fact that small color changes are perceived less accurately than
  72. small changes in brightness.  Thus, JPEG is intended for compressing images
  73. that will be looked at by humans.  If you plan to machine-analyze your
  74. images, the small errors introduced by JPEG may be a problem for you, even
  75. if they are invisible to the eye.
  76.  
  77. A useful property of JPEG is that the degree of lossiness can be varied by
  78. adjusting compression parameters.  This means that the image maker can trade
  79. off file size against output image quality.  You can make *extremely* small
  80. files if you don't mind poor quality; this is useful for applications such
  81. as indexing image archives.  Conversely, if you aren't happy with the output
  82. quality at the default compression setting, you can jack up the quality
  83. until you are satisfied, and accept lesser compression.
  84.  
  85. Another important aspect of JPEG is that decoders can trade off decoding
  86. speed against image quality, by using fast but inaccurate approximations to
  87. the required calculations.  Some viewers obtain remarkable speedups in this
  88. way.
  89.  
  90. ------------------------------
  91.  
  92. Subject: [2] Why use JPEG?
  93.  
  94. There are two good reasons: to make your image files smaller, and to store
  95. 24-bit-per-pixel color data instead of 8-bit-per-pixel data.
  96.  
  97. Making image files smaller is a win for transmitting files across networks
  98. and for archiving libraries of images.  Being able to compress a 2 Mbyte
  99. full-color file down to, say, 100 Kbytes makes a big difference in disk
  100. space and transmission time!  And JPEG can easily provide 20:1 compression
  101. of full-color data.  If you are comparing GIF and JPEG, the size ratio is
  102. usually more like 4:1 (see "[4] How well does JPEG compress images?").
  103.  
  104. If your viewing software doesn't support JPEG directly, you'll have to
  105. convert JPEG to some other format to view the image.  Even with a
  106. JPEG-capable viewer, it takes longer to decode and view a JPEG image than
  107. to view an image of a simpler format such as GIF.  Thus, using JPEG is
  108. essentially a time/space tradeoff: you give up some time in order to store
  109. or transmit an image more cheaply.  But it's worth noting that when network
  110. or telephone transmission is involved, the time savings from transferring a
  111. shorter file can be greater than the time needed to decompress the file.
  112.  
  113. The second fundamental advantage of JPEG is that it stores full color
  114. information: 24 bits/pixel (16 million colors).  GIF, the other image format
  115. widely used on Usenet, can only store 8 bits/pixel (256 or fewer colors).
  116. GIF is reasonably well matched to inexpensive computer displays --- most
  117. run-of-the-mill PCs can't display more than 256 distinct colors at once.
  118. But full-color hardware is getting cheaper all the time, and JPEG images
  119. look *much* better than GIFs on such hardware.  Within a couple of years,
  120. GIF will probably seem as obsolete as black-and-white MacPaint format does
  121. today.  Furthermore, JPEG is far more useful than GIF for exchanging images
  122. among people with widely varying display hardware, because it avoids
  123. prejudging how many colors to use (see "[8] What is color quantization?").
  124. Hence JPEG is considerably more appropriate than GIF for use as a Usenet
  125. posting standard.
  126.  
  127. A lot of people are scared off by the term "lossy compression".  But when
  128. it comes to representing real-world scenes, *no* digital image format can
  129. retain all the information that impinges on your eyeball.  By comparison
  130. with the real-world scene, JPEG loses far less information than GIF.
  131. The real disadvantage of lossy compression is that if you repeatedly
  132. compress and decompress an image, you lose a little quality each time
  133. (see "[10] Does loss accumulate with repeated compression/decompression?").
  134. This is a serious objection for some applications but matters not at all
  135. for many others.
  136.  
  137. ------------------------------
  138.  
  139. Subject: [3] When should I use JPEG, and when should I stick with GIF?
  140.  
  141. JPEG is *not* going to displace GIF entirely; for some types of images,
  142. GIF is superior in image quality, file size, or both.  One of the first
  143. things to learn about JPEG is which kinds of images to apply it to.
  144.  
  145. Generally speaking, JPEG is superior to GIF for storing full-color or
  146. gray-scale images of "realistic" scenes; that means scanned photographs and
  147. similar material.  Any continuous variation in color, such as occurs in
  148. highlighted or shaded areas, will be represented more faithfully and in less
  149. space by JPEG than by GIF.
  150.  
  151. GIF does significantly better on images with only a few distinct colors,
  152. such as line drawings and simple cartoons.  Not only is GIF lossless for
  153. such images, but it often compresses them more than JPEG can.  For example,
  154. large areas of pixels that are all *exactly* the same color are compressed
  155. very efficiently indeed by GIF.  JPEG can't squeeze such data as much as GIF
  156. does without introducing visible defects.  (One implication of this is that
  157. large single-color borders are quite cheap in GIF files, while they are best
  158. avoided in JPEG files.)
  159.  
  160. Computer-drawn images, such as ray-traced scenes, usually fall between
  161. photographs and cartoons in terms of complexity.  The more complex and
  162. subtly rendered the image, the more likely that JPEG will do well on it.
  163. The same goes for semi-realistic artwork (fantasy drawings and such).
  164. But icons that use only a few colors are handled better by GIF.
  165.  
  166. JPEG has a hard time with very sharp edges: a row of pure-black pixels
  167. adjacent to a row of pure-white pixels, for example.  Sharp edges tend to
  168. come out blurred unless you use a very high quality setting.  Edges this
  169. sharp are rare in scanned photographs, but are fairly common in GIF files:
  170. consider borders, overlaid text, etc.  The blurriness is particularly
  171. objectionable with text that's only a few pixels high.  If you have a GIF
  172. with a lot of small-size overlaid text, don't JPEG it.  (If you want to
  173. attach descriptive text to a JPEG image, put it in as a comment rather than
  174. trying to overlay it on the image.  Most recent JPEG software can deal with
  175. textual comments in a JPEG file, although older viewers may just ignore the
  176. comments.)
  177.  
  178. Plain black-and-white (two level) images should never be converted to JPEG;
  179. they violate all of the conditions given above.  You need at least about
  180. 16 gray levels before JPEG is useful for gray-scale images.  It should also
  181. be noted that GIF is lossless for gray-scale images of up to 256 levels,
  182. while JPEG is not.
  183.  
  184. If you have a large library of GIF images, you may want to save space by
  185. converting the GIFs to JPEG.  This is trickier than it may seem --- even
  186. when the GIFs contain photographic images, they are actually very poor
  187. source material for JPEG, because the images have been color-reduced.
  188. Non-photographic images should generally be left in GIF form.  Good-quality
  189. photographic GIFs can often be converted with no visible quality loss, but
  190. only if you know what you are doing and you take the time to work on each
  191. image individually.  Otherwise you're likely to lose a lot of image quality
  192. or waste a lot of disk space ... quite possibly both.  Read sections 8 and 9
  193. if you want to convert GIFs to JPEG.
  194.  
  195. ------------------------------
  196.  
  197. Subject: [4] How well does JPEG compress images?
  198.  
  199. Very well indeed, when working with its intended type of image (photographs
  200. and suchlike).  For full-color images, the uncompressed data is normally 24
  201. bits/pixel.  The best known lossless compression methods can compress such
  202. data about 2:1 on average.  JPEG can typically achieve 10:1 to 20:1
  203. compression without visible loss, bringing the effective storage requirement
  204. down to 1 to 2 bits/pixel.  30:1 to 50:1 compression is possible with small
  205. to moderate defects, while for very-low-quality purposes such as previews or
  206. archive indexes, 100:1 compression is quite feasible.  An image compressed
  207.  
  208. 100:1 with JPEG takes up the same space as a full-color one-tenth-scale
  209.  
  210. thumbnail image, yet it retains much more detail than such a thumbnail.
  211.  
  212. For comparison, a GIF version of the same image would start out by
  213. sacrificing most of the color information to reduce the image to 256 colors
  214. (8 bits/pixel).  This provides 3:1 compression.  GIF has additional "LZW"
  215. compression built in, but LZW doesn't work very well on typical photographic
  216.  
  217. data; at most you may get 5:1 compression overall, and it's not at all
  218.  
  219. uncommon for LZW to be a net loss (i.e., less than 3:1 overall compression).
  220. LZW *does* work well on simpler images such as line drawings, which is why
  221. GIF handles that sort of image so well.  When a JPEG file is made from
  222. full-color photographic data, using a quality setting just high enough to
  223. prevent visible loss, the JPEG will typically be a factor of four or five
  224. smaller than a GIF file made from the same data.
  225.  
  226. Gray-scale images do not compress by such large factors.  Because the human
  227. eye is much more sensitive to brightness variations than to hue variations,
  228. JPEG can compress hue data more heavily than brightness (gray-scale) data.
  229. A gray-scale JPEG file is generally only about 10%-25% smaller than a
  230. full-color JPEG file of similar visual quality.  But the uncompressed
  231. gray-scale data is only 8 bits/pixel, or one-third the size of the color
  232. data, so the calculated compression ratio is much lower.  The threshold of
  233. visible loss is often around 5:1 compression for gray-scale images.
  234.  
  235. The exact threshold at which errors become visible depends on your viewing
  236. conditions.  The smaller an individual pixel, the harder it is to see an
  237.  
  238. error; so errors are more visible on a computer screen (at maybe 70
  239.  
  240. dots/inch) than on a high-quality color printout (300 or more dots/inch).
  241. Thus a higher-resolution image can tolerate more compression ... which is
  242. fortunate considering it's much bigger to start with.  The numbers quoted
  243. above are typical for screen viewing.  Also note that the threshold of
  244. visible error varies considerably across images.
  245.  
  246. ------------------------------
  247.  
  248. Subject: [5] What are good "quality" settings for JPEG?
  249.  
  250. Most JPEG compressors let you pick a file size vs. image quality tradeoff by
  251. selecting a quality setting.  There seems to be widespread confusion about
  252. the meaning of these settings.  "Quality 95" does NOT mean "keep 95% of the
  253. information", as some have claimed.  The quality scale is purely arbitrary;
  254. it's not a percentage of anything.
  255.  
  256. In fact, quality scales aren't even standardized across JPEG programs.
  257. The quality settings discussed in this article apply to the free IJG JPEG
  258. software (described in part 2), and to many programs based on it.  Other
  259. JPEG implementations, notably Apple's and HSI's, use completely different
  260. quality scales; for instance, Apple's scale runs from 0-4, not 0-100.  Some
  261. programs don't even provide a numeric scale, just "high"/"medium"/"low"
  262. style choices.  (Fortunately, this doesn't prevent different implementations
  263. from exchanging compressed files.)
  264.  
  265. In most cases the user's goal is to pick the lowest quality setting, or
  266. smallest file size, that decompresses into an image indistinguishable from
  267. the original.  This setting will vary from one image to another and from one
  268. observer to another, but here are some rules of thumb.
  269.  
  270. For good-quality, full-color source images, the default IJG quality setting
  271. (Q 75) is very often the best choice.  This setting is about the lowest you
  272. can go without expecting to see defects in a typical image.  Try Q 75 first;
  273. if you see defects, then go up.
  274.  
  275. If the image was less than perfect quality to begin with, you might be able
  276. to drop down to Q 50 without objectionable degradation.  On the other hand,
  277. you might need to go to a *higher* quality setting to avoid further loss.
  278. This is often necessary if the image contains dithering or moire patterns
  279. (see "[9] What are some rules of thumb for converting GIF images to JPEG?").
  280.  
  281. Except for experimental purposes, never go above about Q 95; using Q 100
  282. will produce a file two or three times as large as Q 95, but of hardly any
  283. better quality.  If you see a file made with Q 100, it's a pretty sure sign
  284. that the maker didn't know what he/she was doing.
  285.  
  286. If you want a very small file (say for preview or indexing purposes) and are
  287. prepared to tolerate large defects, a Q setting in the range of 5 to 10 is
  288. about right.  Q 2 or so may be amusing as "op art".  (It's worth mentioning
  289. that the current IJG software is not optimized for such low quality factors.
  290. Future versions may achieve better image quality for the same file size at
  291. low quality settings.)
  292.  
  293. ------------------------------
  294.  
  295. Subject: [6] Where can I get JPEG software?
  296.  
  297. See part 2 of this FAQ for recommendations about programs for particular
  298. systems.  Part 2 also tells where to find free C source code for
  299. implementing JPEG, in case you want to write your own programs using JPEG.
  300.  
  301. The comp.graphics FAQs and the alt.binaries.pictures FAQ are more general
  302. sources of information about graphics programs available on the Internet
  303. (see "[19] Where are FAQ lists archived?").
  304.  
  305. ------------------------------
  306.  
  307. Subject: [7] How do I view JPEG images posted on Usenet?
  308.  
  309. Image files posted on the alt.binaries.pictures.* newsgroups are usually
  310. "uuencoded".  Uuencoding converts binary image data into text that can
  311. safely be posted.  Most posters also divide large posts into multiple parts,
  312. since some news software can't cope with big articles.  Before your viewer
  313. will recognize the image, you must combine the parts into one file and run
  314. the text through a uudecode program.  (This is all true for GIF as well as
  315. JPEG, by the way.)  There are programs available to automate this process.
  316.  
  317. For more info see the alt.binaries.pictures FAQ, which is available from
  318. rtfm.mit.edu:/pub/usenet/news.answers/pictures-faq/part[1-3], or on WWW at
  319.  
  320. http://www.cis.ohio-state.edu/hypertext/faq/usenet/pictures-faq/top.html
  321.  
  322. (see also "[19] Where are FAQ lists archived?").
  323.  
  324. ------------------------------
  325.  
  326. Subject: [8] What is color quantization?
  327.  
  328. Most people don't have full-color (24 bit per pixel) display hardware.
  329. Typical display hardware stores 8 or fewer bits per pixel, so it can display
  330. 256 or fewer distinct colors at a time.  To display a full-color image, the
  331. computer must choose an appropriate set of representative colors and map the
  332. image into these colors.  This process is called "color quantization".
  333. (This is something of a misnomer; "color selection" or "color reduction"
  334. would be a better term.  But we're stuck with the standard usage.)
  335.  
  336. Clearly, color quantization is a lossy process.  It turns out that for most
  337. images, the details of the color quantization algorithm have *much* more
  338. impact on the final image quality than do any errors introduced by JPEG
  339. itself (except at the very lowest JPEG quality settings).  Making a good
  340. color quantization method is a black art, and no single algorithm is best
  341. for all images.
  342.  
  343. Since JPEG is a full-color format, displaying a color JPEG image on
  344. 8-bit-or-less hardware requires color quantization.  The speed and image
  345. quality of a JPEG viewer running on such hardware are largely determined by
  346. its quantization algorithm.  Depending on whether a quick-and-dirty or
  347. good-but-slow method is used, you'll see great variation in image quality
  348. among viewers on 8-bit displays, much more than occurs on 24-bit displays.
  349.  
  350. On the other hand, a GIF image has already been quantized to 256 or fewer
  351. colors.  (A GIF always has a specific number of colors in its palette, and
  352. the format doesn't allow more than 256 palette entries.)  GIF has the
  353. advantage that the image maker precomputes the color quantization, so
  354. viewers don't have to; this is one of the things that make GIF viewers
  355. faster than JPEG viewers.  But this is also the *disadvantage* of GIF:
  356. you're stuck with the image maker's quantization.  If the maker quantized to
  357. a different number of colors than what you can display, you'll either waste
  358. display capability or else have to requantize to reduce the number of colors
  359. (which usually results in much poorer image quality than quantizing once
  360. from a full-color image).  Furthermore, if the maker didn't use a
  361. high-quality color quantization algorithm, you're out of luck --- the image
  362. is ruined.
  363.  
  364. For this reason, JPEG promises significantly better image quality than GIF
  365. for all users whose machines don't match the image maker's display hardware.
  366. JPEG's full color image can be quantized to precisely match the viewer's
  367. display hardware.  Furthermore, you will be able to take advantage of future
  368. improvements in quantization algorithms, or purchase better display
  369. hardware, to get a better view of JPEG images you already have.  With a GIF,
  370. you're stuck forevermore with what was sent.
  371.  
  372. A growing number of people have better-than-8-bit display hardware already:
  373. 15-bit "hi-color" PC displays, true 24-bit displays on workstations and
  374. Macintoshes, etc.  For these people, GIF is already obsolete, as it cannot
  375. represent an image to the full capabilities of their display.  JPEG images
  376. can drive these displays much more effectively.
  377.  
  378. In short, JPEG is an all-around better choice than GIF for representing
  379. photographic images in a machine-independent fashion.
  380.  
  381.  
  382. It's sometimes thought that a JPEG converted from a GIF shouldn't require
  383. color quantization.  This is false: even when you feed a 256-or-less-color
  384. GIF into JPEG, what comes out of the decompressor is not 256 colors, but
  385. thousands of colors.  This happens because JPEG's lossiness affects each
  386. pixel a little differently, so two pixels that started with identical colors
  387. will usually come out with slightly different colors.  Considering the whole
  388. image, each original color gets "smeared" into a group of nearby colors.
  389. Therefore quantization is always required to display a color JPEG on a
  390. colormapped display, regardless of the image source.
  391.  
  392. The same effect makes it nearly meaningless to talk about the number of
  393. colors used by a JPEG image.  Even if you tried to count the number of
  394. distinct pixel values, different JPEG decoders would give you different
  395. results because of roundoff error differences.  I occasionally see posted
  396. images described as "256-color JPEG".  This tells me that the poster
  397. (a) hasn't read this FAQ and (b) probably converted the JPEG from a GIF.
  398. JPEGs can be classified as color or gray-scale, but number of colors just
  399. isn't a useful concept for JPEG, any more than it is for a real photograph.
  400.  
  401. ------------------------------
  402.  
  403. Subject: [9] What are some rules of thumb for converting GIF images to JPEG?
  404.  
  405. Converting GIF files to JPEG is a tricky business --- you are piling one set
  406. of limitations atop a quite different set, and the results can be awful.
  407. Certainly a JPEG made from a GIF will never be as good as a JPEG made from
  408. true 24-bit color data.  But if what you've got is GIFs, and you need to
  409. save space, here are some hints for getting the best results.
  410.  
  411. With care and a clean source image, it's often possible to make a JPEG of
  412. quality equivalent to the GIF.  This does not mean that the JPEG looks
  413. pixel-for-pixel identical to the GIF --- it won't.  Especially not on an
  414. 8-bit display, because the color quantization process used to display the
  415. JPEG probably won't quite match the quantization process used to make the
  416. GIF from the original data (see "[8] What is color quantization?").  But
  417. remember that the GIF itself is not all that faithful to the full-color
  418. original, if you look at individual pixels.  Looking at the overall image,
  419. a converted JPEG can look as good as its GIF source.  Some people claim that
  420. on 24-bit displays, a carefully converted JPEG can actually look better than
  421. the GIF source, because dither patterns have been eliminated.  (More about
  422. dithering in a moment.)
  423.  
  424. On the other hand, JPEG conversion absolutely *will* degrade an unsuitable
  425. image or one that is converted carelessly.  If you are not willing to take
  426. the amount of trouble suggested below, you're much better off leaving your
  427. GIF images alone.  Simply cranking the JPEG quality setting up to a very
  428. high value wastes space (which defeats the whole point of the exercise, no?)
  429. and some images will be degraded anyway.
  430.  
  431. The first rule is never to convert an image that's not appropriate for JPEG
  432. (see "[3] When should I use JPEG, and when should I stick with GIF?").
  433. Large, high-visual-quality photographic images are usually the best source
  434. material.  And they take up lots of space in GIF form, so they offer
  435. significant potential space savings.  (A good rule of thumb is not to bother
  436. converting any GIF that's much under 100 Kbytes; the potential savings isn't
  437. worth the hassle.)
  438.  
  439. The second rule is to look at each JPEG, to make sure you are happy with it,
  440. before throwing away the corresponding GIF.  This will give you a chance to
  441. re-do the conversion with a higher quality setting if necessary.  Also
  442. compare the file sizes --- if the image isn't suitable JPEG material, a JPEG
  443. file of reasonable quality may come out *larger* than the GIF.
  444.  
  445. The third rule is to get rid of the border.  Many people have developed
  446. an odd habit of putting a large single-color border around a GIF image.
  447. While useless, this is nearly free in terms of storage cost in GIF files.
  448. It is NOT free in JPEG files, either in storage space or in decoding time;
  449. and the sharp border boundary can create visible artifacts ("ghost" edges).
  450. Furthermore, when viewing a bordered JPEG on an 8-bit display, the quantizer
  451. will think the border color is important because there's so much of it, and
  452. hence will waste color palette entries on the border, thus actually reducing
  453. the displayed quality of the main part of the image!  So do yourself a favor
  454. and crop off any border before JPEGing.
  455.  
  456. The fourth rule is to know where the image came from.  Repeated GIF<=>JPEG
  457. conversions are guaranteed to turn an image into mush, because you pay a
  458. quality-loss price on each round trip.  Don't reconvert images that have
  459. been converted before.
  460.  
  461. Gray-scale images usually convert without much problem.  When using cjpeg,
  462. be sure to use the -gray switch.  (Otherwise, cjpeg treats a GIF as color
  463.  
  464. data; this works, but it wastes space and time if the image is really only
  465.  
  466. gray-scale.)  Quality settings around the default (75) are usually fine.
  467.  
  468. Color images are much trickier.  Color GIFs of photographic images are
  469. usually "dithered" to fool your eye into seeing more than the 256 colors
  470. that GIF can actually store.  If you enlarge the image, you will find that
  471. adjacent pixels are often of significantly different colors; at normal size
  472. the eye averages these pixels together to produce the illusion of an
  473. intermediate color value.  The trouble with dithering is that, to JPEG, it
  474. looks like high-spatial-frequency color noise; and JPEG can't compress noise
  475. very well.  The resulting JPEG file is both larger and of lower image
  476. quality than what you would have gotten from JPEGing the original full color
  477. image (if you had it).  To get around this, you need to "smooth" the GIF
  478. image before compression.  Smoothing averages together nearby pixels, thus
  479. approximating the color that you thought you saw anyway, and in the process
  480. getting rid of the rapid color changes that give JPEG trouble.  Proper use
  481. of smoothing will both reduce the size of the compressed file and give you a
  482. better-looking output image than you'd get without smoothing.
  483.  
  484. With the IJG JPEG software (cjpeg or derived programs), a simple smoothing
  485. capability is built in.  Try "-smooth 10" or so when converting GIFs.
  486. Values of 10 to 25 seem to work well for high-quality GIFs.  GIFs with
  487. heavy-handed dithering may require larger smoothing factors.  (If you can
  488. see regular fine-scale patterns on the GIF image even without enlargement,
  489. then strong smoothing is definitely called for.)  Too large a smoothing
  490. factor will blur the output image, which you don't want.  If you are an
  491. image processing wizard, you can also do smoothing with a separate filtering
  492. program, but appropriate use of such tools is beyond the scope of this FAQ.
  493.  
  494. Quality settings around 85 (a bit higher than default) usually work well
  495. when converting color GIFs, assuming that you've picked a good smoothing
  496. factor.  You may need still higher quality settings if you can't hide the
  497. dithering pattern with a reasonable smoothing factor.  Really badly dithered
  498. GIFs are best left as GIFs.
  499.  
  500. Don't expect JPEG files converted from GIFs to be as small as those created
  501. directly from full-color originals.  The dithering noise wastes space, but
  502. you won't be able to smooth away all the noise without blurring the image.
  503. Typically, a good-quality converted JPEG will be one-half to one-third the
  504. size of the GIF file, not one-fourth as suggested in section 4.  If the JPEG
  505. comes out much more than half the size of the GIF, this is a good sign that
  506. the image shouldn't be converted at all.
  507.  
  508. The upshot of all this is that "cjpeg -quality 85 -smooth 10" is probably a
  509. good starting point for converting color GIFs.  But if you care about the
  510. image, you'll want to check the results and maybe try a few other settings.
  511. Blindly converting a large GIF library at this or any other setting is a
  512. recipe for disaster.
  513.  
  514. ------------------------------
  515.  
  516. Subject: [10] Does loss accumulate with repeated compression/decompression?
  517.  
  518. It would be nice if, having compressed an image with JPEG, you could
  519. decompress it, manipulate it (crop off a border, say), and recompress it
  520. without any further image degradation beyond what you lost initially.
  521. Unfortunately THIS IS NOT THE CASE.  In general, recompressing an altered
  522. image loses more information.  Hence it's important to minimize the number
  523. of generations of JPEG compression between initial and final versions of an
  524. image.
  525.  
  526. It turns out that if you decompress and recompress an image at the same
  527. quality setting first used, little or no further degradation occurs.  This
  528. means that you can make local modifications to a JPEG image without material
  529. degradation of other areas of the image.  The areas you change will degrade,
  530. however.  Counterintuitively, this works better the lower the quality
  531. setting.  But you must use *exactly* the same setting, or all bets are off.
  532. Also, the decompressed image must be saved in a full-color format; if you do
  533.  
  534. JPEG=>GIF=>JPEG, the color quantization step loses lots of information.
  535.  
  536. Unfortunately, cropping doesn't count as a local change!  JPEG processes
  537. the image in small blocks, and cropping usually moves the block boundaries,
  538. so that the image looks completely different to JPEG.  You can take
  539. advantage of the low-degradation behavior if you are careful to crop the
  540. top and left margins only by a multiple of the block size (typically 16
  541. pixels), so that the remaining blocks start in the same places.
  542.  
  543. The bottom line is that JPEG is a useful format for archival storage and
  544. transmission of images, but you don't want to use it as an intermediate
  545. format for sequences of image manipulation steps.  Use a lossless 24-bit
  546. format (PPM, RLE, TIFF, etc) while working on the image, then JPEG it when
  547. you are ready to file it away.  Aside from avoiding degradation, you will
  548. save a lot of compression/decompression time this way :-).
  549.  
  550. ------------------------------
  551.  
  552. Subject: [11] What is progressive JPEG?
  553.  
  554. A simple or "baseline" JPEG file is stored as one top-to-bottom scan of the
  555. image.  Progressive JPEG allows the image to be stored as a series of scans
  556. of increasing quality.  The first scan shows the image at the equivalent of
  557. a very low quality setting, and therefore it takes very little space.
  558. Successive scans improve the quality.  Each scan adds to the data already
  559. provided, so that the total storage requirement is about the same as for a
  560. baseline JPEG image of the same quality as the final scan.  (Basically,
  561. progressive JPEG is just a rearrangement of the same data into a more
  562. complicated order.)
  563.  
  564. The advantage of progressive JPEG is that if an image is being viewed
  565. on-the-fly as it is transmitted, the viewer sees an approximation to the
  566. whole image very quickly, with gradual improvement of quality as one waits
  567.  
  568. longer; this is much nicer than a slow top-to-bottom display of the image.
  569.  
  570. The disadvantage is that each scan takes about the same amount of
  571. computation to display as a whole baseline JPEG file would.  So progressive
  572. JPEG only makes sense if one has a decoder that's much faster than the
  573. communication link.
  574.  
  575. Up until recently, there weren't many applications in which progressive JPEG
  576. looked attractive, so hardly any implementations of it are available.  But
  577. with the popularity of WWW browsers running over rather slow modem links,
  578. and with the ever-increasing horsepower of personal computers, progressive
  579. JPEG is starting to look like a win for WWW.  I expect that progressive JPEG
  580. capability will start to appear in WWW browsers during 1995.
  581.  
  582. ------------------------------
  583.  
  584. Subject: [12] Isn't there a lossless JPEG?
  585.  
  586. There's a great deal of confusion on this subject.  The JPEG standard does
  587. include a truly lossless compression algorithm, i.e., one that guarantees
  588. its decompressed output is bit-for-bit identical to the original input.
  589. However, this lossless mode has almost nothing in common with the regular
  590. lossy JPEG algorithm, and it offers much less compression.
  591.  
  592. Lossless JPEG typically compresses full-color data by around 2:1.  Lossless
  593. JPEG works well only on continuous-tone images; it does not provide useful
  594. compression of palette-color images or low-bit-depth images.  (The JBIG
  595. standard is considered superior to lossless JPEG for images of less than
  596. about 6 bits/sample.)
  597.  
  598. At present, very few implementations of lossless JPEG exist.  The PVRG code
  599. mentioned in part 2 handles lossless JPEG.  Another free implementation
  600. is available from ftp.cs.cornell.edu:/pub/multimed/ljpg.tar.Z; this is a
  601. smaller program that handles *only* lossless JPEG.
  602.  
  603. Cranking a regular JPEG implementation up to its maximum quality setting
  604. *does not* get you lossless storage; lossless JPEG is a fundamentally
  605. different method.  Even at the maximum possible quality setting, regular
  606. JPEG cannot be lossless because it is subject to roundoff errors in various
  607. calculations.  The roundoff errors are nearly always too small to be seen,
  608. but they will accumulate if you put the image through multiple cycles of
  609. compression.
  610.  
  611. Many implementations won't even let you get to the maximum possible setting,
  612. because it's such an inefficient way to use regular JPEG.  With the IJG JPEG
  613. software, for example, you have to say not only "-quality 100" but also
  614. "-sample 1x1" to eliminate all deliberate loss of information.  The
  615. resulting files are far larger and of only fractionally better quality than
  616. files generated at more reasonable settings.  And they're still slightly
  617. lossy!  If you really need lossless storage, don't try to approximate it
  618. with regular JPEG.
  619.  
  620. ------------------------------
  621.  
  622. Subject: [13] Why all the argument about file formats?
  623.  
  624. Strictly speaking, JPEG refers only to a family of compression algorithms;
  625. it does *not* refer to a specific image file format.  The JPEG committee was
  626. prevented from defining a file format by turf wars within the international
  627. standards organizations.
  628.  
  629. Since we can't actually exchange images with anyone else unless we agree on
  630. a common file format, this leaves us with a problem.  In the absence of
  631. official standards, a number of JPEG program writers have just gone off to
  632. "do their own thing", and as a result their programs aren't compatible with
  633. anyone else's.
  634.  
  635. The closest thing we have to a standard JPEG format is some work that's been
  636. coordinated by people at C-Cube Microsystems.  They have defined two
  637. JPEG-based file formats:
  638.   * JFIF (JPEG File Interchange Format), a "low-end" format that transports
  639.     pixels and not much else.
  640.   * TIFF/JPEG, aka TIFF 6.0, an extension of the Aldus TIFF format.  TIFF is
  641.     a "high-end" format that will let you record just about everything you
  642.     ever wanted to know about an image, and a lot more besides :-).  TIFF
  643.     is far more complex than JFIF, and is generally less transportable,
  644.     because different vendors have often implemented slightly different
  645.     and incompatible subsets of TIFF.  It's not likely that adding JPEG to
  646.     the mix will do anything to improve this situation.
  647. Both of these formats were developed with input from all the major vendors
  648. of JPEG-related products; it's reasonably likely that future commercial
  649. products will adhere to one or both standards.
  650.  
  651. JFIF has emerged as the de-facto standard on Usenet.  JFIF is simpler than
  652. TIFF and is available now; the TIFF 6.0 spec for incorporating JPEG is not
  653. widely implemented, partly because it has some serious design flaws.  It is
  654. likely that the TIFF 6.0 JPEG section will be changed significantly before
  655. widespread adoption occurs.  Even when TIFF/JPEG is well defined, the JFIF
  656. format is likely to be a widely supported "lowest common denominator";
  657. TIFF/JPEG files may never be as transportable as JFIF.
  658.  
  659. A particular case of wide interest is Apple's Macintosh QuickTime software.
  660. QuickTime uses a JFIF-compatible format wrapped inside the Mac-specific PICT
  661. structure.  Conversion between JFIF and PICT/JPEG is pretty straightforward,
  662. and several Mac programs are available to do it (see Mac portion of part 2).
  663. If you have an editor that handles binary files, you can even strip a
  664. PICT/JPEG file down to JFIF by hand; see the next section for details.
  665.  
  666. Another particular case is Handmade Software's DOS programs (GIF2JPG/JPG2GIF
  667. and Image Alchemy).  These programs are capable of reading and writing JFIF
  668. format.  By default, though, they write a proprietary format developed by
  669. HSI.  This format is NOT readable by any non-HSI programs and should not be
  670. used for Usenet postings.  Use the -j switch to get JFIF output.  (This
  671. applies to old versions of these programs; the current releases emit JFIF
  672. format by default.  You still should be careful not to post HSI-format
  673. files, unless you want to get flamed by people on non-PC platforms.)
  674.  
  675. News flash: the ISO JPEG committee seems to have won their turf wars.  They
  676. will define a complete file format spec called "SPIFF" in the next version
  677. of the JPEG standard.  It's pretty late in the game though, so whether this
  678. will have much impact on real-world files remains to be seen.
  679.  
  680. ------------------------------
  681.  
  682. Subject: [14] How do I recognize which file format I have,
  683.               and what do I do about it?
  684.  
  685. If you have an alleged JPEG file that your software won't read, it's likely
  686. to be HSI format or some other proprietary JPEG-based format.  You can tell
  687. what you have by inspecting the first few bytes of the file:
  688.  
  689. 1.  A JFIF-standard file will start with the four bytes (hex) FF D8 FF E0,
  690.     followed by two variable bytes (often hex 00 10), followed by 'JFIF'.
  691.  
  692. 2.  If you see FF D8 at the start, but not the 'JFIF' marker, you may have a
  693.     "raw JPEG" file.  This is probably decodable as-is by JFIF software ---
  694.     it's worth a try, anyway.
  695.  
  696. 3.  HSI files start with 'hsi1'.  You're out of luck unless you have HSI
  697.     software.  Portions of the file may look like plain JPEG data, but they
  698.     usually won't decompress properly with non-HSI programs.
  699.  
  700. 4.  A Macintosh PICT file, if JPEG-compressed, will have several hundred
  701.     bytes of header (often 726 bytes, but not always) followed by JPEG data.
  702.     Look for the 3-byte sequence (hex) FF D8 FF.  The text 'Photo - JPEG'
  703.     will usually appear shortly before this header, and 'AppleMark' or
  704.     'JFIF' will usually appear shortly after it.  Strip off everything
  705.     before the FF D8 FF and you will usually be able to decode the file.
  706.     (This will fail if the PICT image is divided into multiple "bands",
  707.     but that is uncommon.)
  708.  
  709. 5.  If the file came from a Macintosh, it could also be a standard JFIF
  710.     file with a MacBinary header attached.  In this case, the JFIF header
  711.     will appear 512 bytes into the file.  Get rid of the first 512 bytes
  712.     and you're set.
  713.  
  714. 6.  Anything else: it's a proprietary format, or not JPEG at all.  If you
  715.     are lucky, the file may consist of a header and a raw JPEG data stream.
  716.     If you can identify the start of the JPEG data stream (look for FF D8),
  717.     try stripping off everything before that.
  718.  
  719. HSI files used to be rather common in alt.binaries.pictures.* postings,
  720. although thankfully they have gotten less so.  You can spot an HSI posting
  721. by looking at the first few characters of the uuencoded data.  The
  722. characteristic HSI pattern is
  723.   "begin" line
  724.   M:'-I ...
  725. whereas standard JFIF files begin with
  726.   "begin" line
  727.   M_]C_X ...
  728. If you learn to spot the HSI pattern, you can save yourself the trouble
  729. of downloading unusable files.
  730.  
  731. ------------------------------
  732.  
  733. Subject: [15] How does JPEG work?
  734.  
  735. You can find an introduction and references for further reading in the
  736. comp.compression FAQ, which is available from the news.answers archive at
  737. rtfm.mit.edu, in files /pub/usenet/news.answers/compression-faq/part[1-3]
  738. (see also "[19] Where are FAQ lists archived?").
  739.  
  740. The comp.compression FAQ is also a good starting point for information on
  741. other state-of-the-art image compression methods, such as wavelets and
  742. fractals.  A quick comparison: wavelets are likely to be the basis of the
  743. next generation of image-compression standards, but they are perhaps 10
  744. years behind JPEG in the standardization pipeline.  Fractals have been
  745. terribly over-hyped by their chief commercial proponent, and it's difficult
  746. to say what their true capabilities are.
  747.  
  748. ------------------------------
  749.  
  750. Subject: [16] What about arithmetic coding?
  751.  
  752. The JPEG spec defines two different "back end" modules for the final output
  753. of compressed data: either Huffman coding or arithmetic coding is allowed.
  754. The choice has no impact on image quality, but arithmetic coding usually
  755. produces a smaller compressed file.  On typical images, arithmetic coding
  756. produces a file 5 to 10 percent smaller than Huffman coding.  (All the
  757. file-size numbers previously cited are for Huffman coding.)
  758.  
  759. Unfortunately, the particular variant of arithmetic coding specified by the
  760. JPEG standard is subject to patents owned by IBM, AT&T, and Mitsubishi.
  761. Thus *you cannot legally use JPEG arithmetic coding* unless you obtain
  762. licenses from these companies.  (Patent law's "experimental use" exception
  763. allows people to test a patented method in the context of scientific
  764. research, but any commercial or routine personal use is infringement.)
  765.  
  766. I recommend that people not use JPEG arithmetic coding; the space savings
  767. isn't great enough to justify the potential legal hassles.  In particular,
  768. arithmetic coding *should not* be used for any images to be exchanged on
  769. Usenet.  Even if you don't care about US patent law, other folks do.
  770.  
  771. ------------------------------
  772.  
  773.  
  774. Subject: [17] Could an FPU speed up JPEG?  How about a DSP chip?
  775.  
  776. Since JPEG is so compute-intensive, many people suggest that using an
  777. FPU chip (a math coprocessor) should speed it up.  This is not so.
  778. Most production-quality JPEG programs use only integer arithmetic and so
  779. they are unaffected by the presence or absence of floating-point hardware.
  780.  
  781. It is possible to save a few operations by doing the DCT step in floating
  782. point.  On most PC-class machines, FP math is enough slower than integer
  783. math that the overall speed is still much worse with FP.  Some high-priced
  784. workstations and supercomputers have fast enough FP hardware to make an FP
  785. DCT method be a win.
  786.  
  787. DSP (digital signal processing) chips are ideally suited for fast repetitive
  788. integer arithmetic, so programming a DSP to do JPEG can yield significant
  789. speedups.  DSPs are starting to be found as add-ons for PCs and small
  790. workstations, so you can expect to see DSP-based JPEG programs popping up.
  791.  
  792. ------------------------------
  793.  
  794. Subject: [18] Isn't there an M-JPEG standard for motion pictures?
  795.  
  796. As was stated in section 1, JPEG is only for still images.  Nonetheless,
  797. you will frequently see references to "motion JPEG" or "M-JPEG" for video.
  798. *There is no such standard*.  Various vendors have applied JPEG to
  799. individual frames of a video sequence, and have called the result "M-JPEG".
  800. Unfortunately, in the absence of any recognized standard, they've each done
  801. it differently.  The resulting files are usually not compatible across
  802. different vendors.
  803.  
  804. MPEG is the recognized standard for motion picture compression.  It uses
  805. many of the same techniques as JPEG, but adds inter-frame compression to
  806. exploit the similarities that usually exist between successive frames.
  807. Because of this, MPEG typically compresses a video sequence by about a
  808. factor of three more than "M-JPEG" methods can.  The disadvantages of MPEG
  809. are (1) it requires much more computation to generate the compressed
  810. sequence (since detecting visual similarities is hard for a computer), and
  811. (2) it's difficult to edit an MPEG sequence on a frame-by-frame basis
  812. (since each frame is intimately tied to the ones around it).  This latter
  813. problem has made "M-JPEG" methods rather popular for video editing products.
  814.  
  815. It's a shame that there isn't a recognized M-JPEG standard.  But there
  816. isn't, so if you buy a product identified as "M-JPEG", be aware that you
  817. are probably locking yourself into that one vendor.
  818.  
  819. See the MPEG FAQ for more information about MPEG.
  820.  
  821. ------------------------------
  822.  
  823. Subject: [19] Where are FAQ lists archived?
  824.  
  825. Many FAQs are crossposted to news.answers.  Well-run netnews sites will have
  826. the latest versions available in that newsgroup.  However, there are a *lot*
  827. of postings in news.answers, and they can be hard to sort through.
  828.  
  829. The latest versions of news.answers postings are archived at rtfm.mit.edu.
  830. You can retrieve this FAQ by FTP as /pub/usenet/news.answers/jpeg-faq/part1
  831. and /pub/usenet/news.answers/jpeg-faq/part2.  If you have no FTP access,
  832. send e-mail to mail-server@rtfm.mit.edu containing the lines
  833.   send usenet/news.answers/jpeg-faq/part1
  834.   send usenet/news.answers/jpeg-faq/part2
  835. (If you don't get a reply, the server may be misreading your return address;
  836. add a line such as "path myname@mysite" to specify your correct e-mail
  837. address to reply to.)  For more info about the FAQ archive, retrieve the
  838. file rtfm.mit.edu:/pub/usenet/news.answers/news-answers/introduction.
  839.  
  840. The same FAQs are also available in the World Wide Web; see the index at
  841.  
  842. http://www.cis.ohio-state.edu/hypertext/faq/usenet/FAQ-List.html.  This FAQ
  843.  
  844. is http://www.cis.ohio-state.edu/hypertext/faq/usenet/jpeg-faq/top.html.
  845.  
  846. -- 
  847.       tom lane
  848.       organizer, Independent JPEG Group
  849.       tgl@netcom.com or tgl@sss.pgh.pa.us
  850.  
  851.  
  852. Archive-name: jpeg-faq/part2
  853. Posting-Frequency: every 14 days
  854. Last-modified: 5 March 1995
  855.  
  856. This article answers Frequently Asked Questions about JPEG image compression.
  857. This is part 2, covering system-specific hints and program recommendations
  858. for a variety of computer systems.  Part 1 covers general questions and
  859. answers about JPEG.  As always, suggestions for improvement of this FAQ are
  860. welcome.
  861.  
  862. New since version of 3 February 1995:
  863.   * New entry for FastView (Amiga JPEG/GIF/ILBM viewer).
  864.   * New versions of ACDSee (1.21), 2SHOW (1.06), PMView (0.90),
  865.     GraphicConverter (2.07).
  866.   * Updated FTP locations for OS/2 programs.
  867.  
  868.  
  869. This article includes the following sections:
  870.  
  871. General info:
  872.  
  873. [1] What is covered in this FAQ?
  874. [2] How do I retrieve these programs?
  875.  
  876. Programs and hints for specific systems:
  877.  
  878. [3] X Windows
  879. [4] Unix (without X)
  880. [5] MS-DOS
  881. [6] Microsoft Windows
  882. [7] OS/2
  883. [8] Macintosh
  884. [9] Amiga
  885. [10] Atari ST
  886. [11] Acorn Archimedes
  887. [12] NeXT
  888. [13] Other systems
  889.  
  890. Source code for JPEG:
  891.  
  892. [14] Freely available source code for JPEG
  893.  
  894. Miscellaneous:
  895.  
  896. [15] Where are FAQ lists archived?
  897.  
  898.  
  899. This article and its companion are posted every 2 weeks.  If you can't find
  900. part 1, you can get it from the news.answers archive at rtfm.mit.edu
  901. (see "[15] Where are FAQ lists archived?"). This article changes frequently;
  902. get a new copy if the one you are reading is more than a couple months old.
  903.  
  904. ------------------------------
  905.  
  906. Subject: [1] What is covered in this FAQ?
  907.  
  908. This list describes programs that are of particular interest to JPEG users.
  909. For the most part, I concentrate on viewers, since a viewer program is the
  910. first thing you'll need.  Some general image-editing programs are listed
  911. too, especially if they are useful as plain viewers (meaning that they can
  912. load and display an image as quickly and easily as a dedicated viewer).
  913. Programs that convert JPEG to and from other image file formats are also
  914. covered.
  915.  
  916. I list only freeware and shareware programs that are available on the
  917. Internet by FTP.  Commercial products are intentionally excluded, to keep
  918. the list to a reasonable size and to avoid any appearance of advertising.
  919. Also, I try to list only programs that are popular among Usenet users, as
  920. indicated by comments and recommendations in news articles.  I have no
  921. access to many of the types of systems covered here, so I have to rely on
  922. what other people say about a program to decide whether to list it.  If you
  923. have an opinion pro or con on any program, I'd appreciate hearing it.
  924.  
  925. This FAQ also includes a few hints that are specific to a machine or
  926. program, and thus don't belong in the general discussion of part 1.
  927.  
  928. ------------------------------
  929.  
  930. Subject: [2] How do I retrieve these programs?
  931.  
  932. All the files mentioned in this FAQ are available by standard Internet FTP.
  933. If you don't know how to use FTP, please read the article "Anonymous FTP
  934. FAQ List", which you can get by sending e-mail to mail-server@rtfm.mit.edu
  935. with the single line "send usenet/news.answers/ftp-list/faq" in the body.
  936. (See also "[15] Where are FAQ lists archived?")  This section gives some
  937. quick reminders which are not meant as a substitute for reading the FTP FAQ.
  938.  
  939. If you do not have direct access to FTP, you can use an "ftpmail" server to
  940. obtain files by e-mail.  See the FTP FAQ for details.
  941.  
  942. If you use a WWW browser such as Mosaic or Lynx, it will do FTP for you.
  943. To retrieve a file described here as "site.name:/path/to/file", tell the
  944. browser to open the URL "ftp://site.name/path/to/file".  (If you are reading
  945. this FAQ in the WWW FAQ archive, the file names should appear as links that
  946. you can just click on.)  Don't forget to set save-to-disk mode first.
  947.  
  948. Many of the pointers given here refer to popular central archive sites,
  949. such as oak.oakland.edu for DOS software or sumex-aim.stanford.edu for Mac.
  950. These sites are often overloaded, and are likely to refuse your connection
  951. request when they are busy.  You can try again at a less popular time of
  952. day, or you can look for a "mirror site".  Most central archive sites have
  953. groups of mirror sites that keep copies of their files.  Find out the name
  954. of the mirror site closest to you, and visit that site instead; it's good
  955. net citizenship and you'll get faster response.  Check the FAQs for the
  956. newsgroups specific to your system type to find lists of mirror sites.
  957. (The archive site may list some mirror sites in its connection-refused error
  958. message.  Unfortunately, some FTP programs won't show you the whole message.
  959. WWW browsers are often bad about this.)
  960.  
  961. If you are able to reach the archive site, but the file you want doesn't
  962. exist, most likely it's been replaced by a newer version.  Get a directory
  963. listing of the directory that's supposed to contain the file, and look for
  964. a file with a similar name but a higher version number.  (If you find an
  965. out-of-date reference in a *current* version of the JPEG FAQ, I'd
  966. appreciate hearing about it by e-mail.)
  967.  
  968. Practically all of the files listed here are compressed archive files.
  969. This means you need to retrieve them in binary mode.  (WWW browsers do this
  970. automatically, but many older FTP programs must be told to use binary mode.)
  971. Once you've got the archive file, you'll need a decompressor/dearchiver
  972. to extract the program and documentation files inside it.  Check the FAQs
  973. for your system type to find out where to get dearchiver programs.
  974.  
  975. ------------------------------
  976.  
  977. Subject: [3] X Windows
  978.  
  979. XV is an excellent viewer for JPEG, GIF, and many other image formats.
  980. It can also do format conversion and some simple image manipulations.
  981. Get it from ftp.cis.upenn.edu:/pub/xv/xv-3.10.tar.gz.  Shareware, $25.
  982. Version 3.10 has some nifty new features, and it loads JPEGs noticeably
  983. faster than any prior version.  If you're still using version 2.anything,
  984. it's definitely time to upgrade.  HINT: if you have an 8-bit display then
  985. you need to "lock 8-bit mode" to get decent display of JPEG images.  (But
  986. do NOT do this if you intend to resave the image, because it'll be written
  987. from the 8-bit version, thus costing you image quality.)  You can set this
  988. mode to be default by adding "xv.force8: true" to your .Xdefaults file.
  989.  
  990. Another excellent choice is John Cristy's free ImageMagick package,
  991. ftp.x.org:/contrib/applications/ImageMagick/ImageMagick-3.5.tar.gz.  This
  992. package handles many image processing and conversion tasks.  The ImageMagick
  993. viewer handles 24-bit displays correctly; for colormapped displays, it does
  994. better (though slower) color quantization than XV or the basic IJG JPEG
  995. software.
  996.  
  997. Both of the above are large, complex packages.  If you just want a simple
  998. image viewer, try xloadimage or xli.  xloadimage views and converts many
  999. image file types including JPEG.  Version 4.1 has better JPEG support than
  1000. prior versions and is easier to install.  xloadimage is free and available
  1001. from ftp.x.org:/R5contrib/xloadimage.4.1.tar.gz.  xli is a variant version
  1002. of xloadimage; xli is slightly better as an interactive viewer, but it can't
  1003. be used as a converter, and it supports fewer file formats.  xli is also
  1004. free and available from ftp.x.org:/contrib/applications/xli.1.16.tar.gz.
  1005.  
  1006. ------------------------------
  1007.  
  1008. Subject: [4] Unix (without X)
  1009.  
  1010. If you want a command-line JPEG conversion program, see the IJG source code
  1011. described in section 14.  (This code is included as a subdirectory in most
  1012. of the X programs described above, although they may not have the latest
  1013. version.)
  1014.  
  1015. Non-X viewers are hard to come by, since they are very hardware dependent.
  1016. Linux users with VGA/SVGA displays may like zgv.  Version 2.5 is available
  1017. from sunsite.unc.edu:/pub/Linux/apps/graphics/viewers/zgv2.5-bin.tar.gz.
  1018. (Several other alternatives are available in the same directory.)
  1019. If you use a less popular platform, you're probably out of luck.
  1020.  
  1021. ------------------------------
  1022.  
  1023. Subject: [5] MS-DOS
  1024.  
  1025. This covers plain DOS; for Windows or OS/2 programs, see the next sections.
  1026.  
  1027. NOTE ABOUT SIMTEL FILES: The largest Internet collection of PC-related
  1028. programs is the Simtel archives (named for the original archive site, now
  1029. defunct).  The principal archive site for these files is oak.oakland.edu,
  1030. which keeps Simtel files under /SimTel; so files in the msdos/graphics
  1031. section of the archives are at oak.oakland.edu:/SimTel/msdos/graphics/.
  1032. There are many mirror sites which keep copies of the Simtel files; for
  1033. quickest response you should use the mirror site closest to you.  Consult
  1034. the periodic postings in comp.archives.msdos.announce to find your nearest
  1035. mirror site.  If you have no FTP capability, the same postings will tell you
  1036. how to retrieve Simtel files by e-mail.
  1037.  
  1038. QPEG is the fastest noncommercial JPEG viewer I know of.  In exchange for
  1039. speed, QPEG gives up some image quality, particularly on 256-or-less-color
  1040. displays.  Its best feature is a really-fast small preview window, which is
  1041. great for searching through lots of image files. Also views GIF,TGA,BMP,PCX.
  1042. Requires 386-or-better CPU and VGA-or-better display card.  Current version
  1043. is 1.5e, available from ftp.tu-clausthal.de:/pub/msdos/graphics/qpeg15e.zip.
  1044. Also available from Simtel sites, file msdos/graphics/qpeg15e.zip.
  1045. Shareware, $20.
  1046.  
  1047. DVPEG is a free viewer for JPEG, GIF, Targa, and PPM files.  Current version
  1048. is 3.0l, available from sunee.uwaterloo.ca:/pub/jpeg/viewers/dvpeg30l.zip.
  1049. (That's lower case l, not digit 1.)  This is a good basic viewer that works
  1050. on either 286 or 386/486 machines.  The user interface is clunky but
  1051. functional.  DVPEG is substantially faster than it used to be; on hi-color
  1052. displays it is nearly as fast as QPEG.  On 8-bit displays, its two-pass
  1053. quantization mode is slow but gives much better image quality than QPEG can
  1054. provide.
  1055.  
  1056. Lesser-used DOS viewers include:
  1057. * DISPLAY, alias DISP.  The Swiss army knife of DOS viewers.  Does almost
  1058.   everything, but a bit intimidating for newcomers.  User interface is much
  1059.   improved over early versions, but still awkward in places.  Requires 386
  1060.   or better.  Freeware.  Current version is 1.87, available from
  1061.   nctuccca.edu.tw:/PC/graphics/disp/disp187a.zip and disp187b.zip.
  1062. * GDS.  A well-done viewer and image converter for many image formats.
  1063.   Installation is simple, and the on-line documentation is very good.
  1064.   JPEG loading is a bit slower than the above viewers, though.  Shareware,
  1065.   $40.  Current version is 3.1f.  A slightly restricted demo version is
  1066.   available from ftp.netcom.com:/pub/ph/photodex/gds31f.zip.
  1067. * NVIEW.  Views JPEG and half a dozen other image formats.  Easy to use,
  1068.   very easy to install.  Only moderately fast, but it has lots of options.
  1069.   Supports hi-color and true-color modes on some cards, but not mine :-(.
  1070.   Requires 386 or better.  Current version is 1.40, available from Simtel
  1071.   sites, file msdos/graphics/nview140.zip.  Shareware, $29.
  1072. * ColorView for DOS.  This viewer's main advantage is easy installation.
  1073.   Menu interface is spiffy-looking but I find it a bit clunky to use.
  1074.   Does not require 386, should work with any display that has a VESA
  1075.   driver.  Current version is 2.1, available from Simtel sites, file
  1076.   msdos/graphics/dcview21.zip.  Requires a VESA graphics driver; if you
  1077.   don't have one, look in msdos/graphics/vesadrv2.zip or
  1078.   msdos/graphics/vesa-tsr.zip.  Shareware, $30.
  1079.  
  1080. DISRECOMMENDATION: The well-known GIF viewer CompuShow (CSHOW, recently
  1081. renamed 2SHOW) supports JPEG, but CSHOW's JPEG implementation is crummy:
  1082. it's much slower than any of the above viewers, and its image quality is
  1083. poor except on hi-color displays.  Too bad ... it'd have been nice to see
  1084. a good JPEG capability in CSHOW, especially since CSHOW supports pre-VGA
  1085. displays while most of the above viewers don't.  Available from Simtel
  1086. sites, file msdos/gif/2show106.zip.  Shareware, $25.
  1087.  
  1088. Due to the remarkable variety of PC graphics hardware, any one of these
  1089. viewers might not work on your particular machine.  If you can't get *any*
  1090. of them to work, you'll need to use one of the following conversion programs
  1091. to convert JPEG to GIF, then view with your favorite GIF viewer.  (If you
  1092. have hi-color hardware, don't use GIF as the intermediate format; try to
  1093. find a hi-color BMP- or TARGA-capable viewer instead.)
  1094.  
  1095. The free IJG JPEG converters are available from Simtel sites, file
  1096. msdos/graphics/jpg5a.zip (or jpg5a386.zip if you have a 386 or better CPU
  1097. and extended memory).  These programs will convert JPEG to and from GIF,
  1098. BMP, Targa, and PPM formats; they are DOS compilations of the free source
  1099. code described in section 14.
  1100.  
  1101. Handmade Software offers free JPEG<=>GIF conversion tools, GIF2JPG/JPG2GIF.
  1102. These are quite slow and are limited to conversion to and from GIF format;
  1103. thus they can't produce 24-bit color output from a JPEG.  The sole advantage
  1104. of these tools is that they will read and write HSI's proprietary JPEG
  1105. format as well as the Usenet-standard JFIF format.  Since HSI-format files
  1106. are rather widespread on BBSes, this is a useful capability.  Version 2.0
  1107. of these tools is free (prior versions were shareware).  Get it from Simtel
  1108. sites, file msdos/graphics/gif2jpg2.zip.
  1109.  
  1110. NOTE: do not use HSI format for files to be posted on Usenet, since it is
  1111.  
  1112. not readable by any non-HSI software.
  1113.  
  1114. Handmade Software also has a shareware image conversion and manipulation
  1115. package, Image Alchemy.  This will translate JPEG files (both JFIF and HSI
  1116. formats) to and from many other image formats.  It can also display images.
  1117. A demo version of Image Alchemy version 1.77 is available from Simtel sites,
  1118. file msdos/graphics/alch177.zip.
  1119.  
  1120. JPGINDEX is a useful tool for making indexes of JPEG image collections.
  1121. Available from Simtel sites, file msdos/graphics/jpgidx13.zip.
  1122.  
  1123. ------------------------------
  1124.  
  1125. Subject: [6] Microsoft Windows
  1126.  
  1127. LView Pro is a viewer/editor/converter for JPEG, GIF, BMP, and other
  1128. formats.  Version 1.A is available from Simtel sites (see NOTE in previous
  1129. section), file win3/graphics/lviewp1a.zip.  Requires 386 or better CPU.
  1130. LView Pro offers a wide array of image editing functions and can load JPEGs
  1131. in either fast/low-quality or slow/high-quality modes.  Shareware payment
  1132. ($30) is required only for business usage or to obtain versions optimized
  1133. for Win32s/NT, 486 or Pentium CPUs.
  1134.  
  1135. ACDSee is a very fast, very simple JPEG and GIF viewer.  Good choice if you
  1136. don't want a lot of options to worry about.  Current version is 1.21,
  1137. available from ftp.cica.indiana.edu:/pub/pc/win3/desktop/acdc121.zip.
  1138. Shareware, $15.
  1139.  
  1140. WinECJ is a fast, no-frills viewer with image quality noticeably worse than
  1141. most other JPEG viewers.  (You can purchase a version with better image
  1142. quality for AUD$30.)  Version 1.2 is free and available from Simtel sites,
  1143. file win3/graphics/winecj12.zip.  Requires Windows 3.1 and
  1144. 256-or-more-colors mode.
  1145.  
  1146. WinJPEG (shareware, $25) displays JPEG,GIF,Targa,TIFF,PCX, and BMP files;
  1147. it can write all of these formats too, so it can be used as a converter.
  1148. It has some other nifty features including screen capture, color-balance
  1149. adjustment, and slideshow.  The current version is 2.65, available from
  1150. Simtel sites, file win3/graphics/winjp265.zip.  (This is a 286-compatible
  1151. version; if you register, you'll get the 386-and-up version, which is
  1152. roughly twice as fast.)
  1153.  
  1154. Some people prefer Paint Shop Pro.  It's not very impressive as just a JPEG
  1155. viewer (especially since image quality is not very good on 8-bit displays),
  1156. but it has lots of image manipulation features.  Current version is 2.00,
  1157. available from ftp.cica.indiana.edu:/pub/pc/win3/desktop/pspro200.zip.
  1158. Shareware, $69.
  1159.  
  1160. QPEG and DVPEG (see section 5) work under Windows, but only in full-screen
  1161. mode, not in a window.  Also note that you can run the DOS conversion
  1162. programs described earlier inside a Windows DOS window.
  1163.  
  1164. ------------------------------
  1165.  
  1166. Subject: [7] OS/2
  1167.  
  1168. The most widely used OS/2 JPEG viewers are:
  1169.  
  1170. JoeView 1.22b: free JPEG/GIF/BMP/PCX/TIFF viewer.  Available from
  1171. hobbes.nmsu.edu:/os2/graphics/jovw122b.zip.
  1172.  
  1173. PMJPEG 1.63: OS/2 2.x port of WinJPEG, a popular viewer/converter for
  1174. Windows (see description in previous section).  Shareware, $20.  Available
  1175. from hobbes.nmsu.edu:/os2/graphics/pmjpg163.zip.
  1176.  
  1177. PMView 0.90: JPEG/GIF/BMP/Targa/etc viewer.  GIF viewing very fast, JPEG
  1178. viewing roughly the same speed as the above two programs.  Has image
  1179. manipulation & slideshow functions.  Shareware, $35.  Available from
  1180. hobbes.nmsu.edu:/os2/graphics/pmview90.zip.
  1181.  
  1182. All of these viewers require Palette Manager for best display quality.
  1183. Opinion seems to be about equally split as to which is the best, so try
  1184. them all to see which one you like.
  1185.  
  1186. Possibilities for file format conversion include:
  1187.  
  1188. Image Archiver 1.03: image conversion/viewing with PM graphical interface.
  1189. Strong on conversion functions, viewing is a bit weaker.  Shareware, $15.
  1190. hobbes.nmsu.edu:/os2/graphics/imgarc13.zip.
  1191.  
  1192. hobbes.nmsu.edu:/os2/graphics/jpegv4.zip is a 32-bit version of the free IJG
  1193. conversion programs, version 4.  (Version 5 is stuck in the archive admin's
  1194. input queue :-(.)
  1195.  
  1196. hobbes.nmsu.edu:/os2/graphics/jpeg4_16.zip is a 16-bit version of
  1197. same, suitable for OS/2 1.x.
  1198.  
  1199. Note: the hobbes OS/2 collection is mirrored at ftp-os2.cdrom.com.
  1200.  
  1201. ------------------------------
  1202.  
  1203. Subject: [8] Macintosh
  1204.  
  1205. Most Mac JPEG programs rely on Apple's JPEG implementation, which is part of
  1206. the QuickTime system extension; so you need to have QuickTime installed.
  1207. To use QuickTime, you need a 68020 or better CPU and you need to be running
  1208. System 6.0.7 or later.  (If you're running System 6, you must also install
  1209. the 32-bit QuickDraw extension; in System 7, that is built in.)  The latest
  1210. freely available version of QuickTime is 1.6.1, available from
  1211. ftp.apple.com:/dts/mac/sys.soft/quicktime/quicktime-1-6-1.hqx.
  1212.  
  1213. Mac users should keep in mind that QuickTime's JPEG format, PICT/JPEG, is
  1214. not the same as the Usenet-standard JFIF JPEG format.  (See part 1 for
  1215. details.)  If you post images on Usenet, make sure they are in JFIF format.
  1216. Most of the programs mentioned here can handle either format.
  1217.  
  1218. The two major Internet sites for Mac software are sumex-aim.stanford.edu and
  1219. mac.archive.umich.edu.  Unfortunately they are both very busy, so you may
  1220. have better luck getting files from a mirror site.  See "Introductory
  1221. Macintosh Frequently Asked Questions" in the comp.sys.mac.* newsgroups for
  1222. the current locations of mirrors.
  1223.  
  1224. JPEGView is an excellent free program for viewing JFIF,PICT/JPEG,GIF,TIFF,
  1225. and other image files.  It can convert between the two JPEG formats and can
  1226. create preview images for files.  The current version is 3.3.1, available
  1227. from sumex-aim.stanford.edu:/info-mac/grf/util/jpeg-view-331.hqx.  Requires
  1228. System 7; QuickTime is optional.  JPEGView usually produces the best color
  1229. image quality of all the currently available Mac JPEG viewers, and it needs
  1230. much less memory to view large images than most other Mac viewers.  Given
  1231. a large image, JPEGView automatically scales it down to fit on the screen,
  1232. rather than presenting scroll bars like most other viewers.  (You can zoom
  1233. in on any desired portion, though.)  Some people like this behavior, some
  1234. don't.  Overall, JPEGView's user interface is very well thought out.
  1235.  
  1236. GIFConverter, a shareware ($40) image viewer/editor/converter, supports
  1237. JFIF,PICT/JPEG,GIF, and many other image formats.  Current version is 2.3.7,
  1238. mac.archive.umich.edu:/mac/graphics/graphicsutil/gifconverter2.37.cpt.hqx.
  1239. Requires System 6.0.5 or later.  GIFConverter is not better than JPEGView as
  1240. a plain JPEG/GIF viewer, but it has much more extensive image manipulation
  1241. and format conversion capabilities.  Also, GIFConverter can load and save
  1242. JFIF images *without* QuickTime, so it is your best bet if your machine is
  1243. too old to run QuickTime.  (But it's faster with QuickTime.)  Hint: if
  1244. GIFConverter runs out of memory while loading a large JPEG, try converting
  1245. the file to GIF with JPEG Convert, then viewing the GIF version.
  1246.  
  1247. A competitor to GIFConverter is GraphicConverter, also shareware ($35).
  1248. Current version is 2.07, available at
  1249. sumex-aim.stanford.edu:/info-mac/grf/util/graphic-converter-207.hqx.
  1250. Requires System 7 and QuickTime to handle JPEG.  GraphicConverter has even
  1251. more functionality than GIFConverter, but is correspondingly larger.  Worth
  1252. checking out if you want to manipulate images, not just look at them.
  1253.  
  1254. JPEG Convert, a Mac version of the free IJG JPEG conversion utilities, is
  1255. available at sumex-aim.stanford.edu:/info-mac/app/jpeg-convert-10.hqx.
  1256. This will run on any Mac, but it only does file conversion, not viewing.
  1257. You can use it in conjunction with any GIF viewer.
  1258.  
  1259. Storm Technology's Picture Decompress is a free JPEG viewer/converter.
  1260. This rather old program is inferior to the above programs in many ways, but
  1261. it will run without System 7 or QuickTime, so you may be forced to use it on
  1262. older systems.  (It needs 32-bit QuickDraw, so really old machines can't use
  1263. it.)  File sumex-aim.stanford.edu:/info-mac/app/picture-decompress-201.hqx.
  1264.  
  1265. If your Mac is too old to run 32-bit QuickDraw (a Mac Plus for instance),
  1266. GIFConverter is your only choice for single-program JPEG viewing.  If you
  1267. don't want to pay for GIFConverter, use JPEG Convert and a free GIF viewer.
  1268.  
  1269. More and more commercial Mac applications are supporting JPEG, although not
  1270. all can deal with the Usenet-standard JFIF format.  Adobe Photoshop, version
  1271. 2.0.1 or later, can read and write JFIF-format JPEG files.  (In 2.0.1, use
  1272. the JPEG plug-in on the Acquire menu; 2.5 and later handle JPEG the same as
  1273. other file types.)  You must set the file type code of a downloaded JPEG
  1274. file to 'JPEG' to allow Photoshop to recognize it.
  1275.  
  1276. HINT: if you use Fetch to retrieve files by FTP, add ".jpg" to its list of
  1277.  
  1278. binary file types under Customize/Suffix Mapping.  Otherwise Fetch's
  1279. "automatic" retrieval mode will retrieve JPEGs in text mode, thus corrupting
  1280. the data.
  1281.  
  1282. ------------------------------
  1283.  
  1284. Subject: [9] Amiga
  1285.  
  1286. Most programs listed in this section are available from "AmiNet" archive
  1287. sites.  The master AmiNet site is wuarchive.wustl.edu, but there are many
  1288. mirror sites and you should try to use the closest one.
  1289.  
  1290. Osma Ahvenlampi posted a good review of Amiga picture viewers in
  1291. comp.sys.amiga.reviews in March 1994.  You can retrieve it from
  1292. math.uh.edu:/pub/Amiga/comp.sys.amiga.reviews/software/graphics/PictureViewerSur
  1293. vey_2.
  1294. Opinions here are mostly stolen from his article.
  1295.  
  1296. FastView is a fast, high-quality JPEG/GIF/ILBM viewer.  It's new but has
  1297. achieved a good reputation in a short time.  Works well on both ECS and AGA
  1298. displays.  Shareware, $15; requires OS 2.0.  Version 1.30 is available from
  1299. Aminet sites, file /pub/aminet/gfx/show/FView130.lha.
  1300.  
  1301. FastJPEG is a free JPEG viewer; it's fast and has good image quality, but it
  1302. doesn't view any formats except JPEG.  Somewhat faster than FastView on ECS
  1303. machines, slower on AGA.  Version 1.10 is available from Aminet sites, file
  1304. /pub/aminet/gfx/show/FastJPEG_1.10.lha.
  1305.  
  1306. PPShow is a good free JPEG/GIF/ILBM/ANIM/Datatype viewer.  Version 4.0 is
  1307. available from Aminet sites, file /pub/aminet/gfx/show/PPShow40.lha.  For
  1308. viewing JPEGs it is a little slower than FastJPEG, and image quality is not
  1309. as good (particularly on ECS machines); but if you want to use just one
  1310. viewer, PPShow is the one.
  1311.  
  1312. HamLab Plus is an excellent JPEG viewer/converter, as well as being a
  1313. general image manipulation tool.  It's cheap (shareware, $20) and can read
  1314. several formats besides JPEG.  The current version is 2.0.8.  A demo version
  1315. is available from AmiNet sites, file /pub/aminet/gfx/edit/hamlab208d.lha.
  1316. The demo version will crop images larger than 512x512, but it is otherwise
  1317. fully functional.
  1318.  
  1319. Rend24 (shareware, $30) is an image renderer that can display JPEG, ILBM,
  1320. and GIF images.  The program can be used to create animations, even
  1321. capturing frames on-the-fly from rendering packages like Lightwave.
  1322. The current version is 1.05, available from AmiNet sites, file
  1323. /pub/aminet/gfx/aga/rend105.lha.
  1324.  
  1325. Viewtek is a free JPEG/ILBM/GIF/ANIM viewer.  The current version is 2.1,
  1326. available from AmiNet sites, file /pub/aminet/gfx/show/ViewTEK21.lha.
  1327. Viewtek used to be the best free JPEG viewer for Amiga, but it now faces
  1328. stiff competition from FastJPEG and PPShow.  The choice depends on your
  1329. display hardware and personal preferences.  In particular, Viewtek has poor
  1330. display quality on ECS machines.
  1331.  
  1332. There is finally a good JPEG datatype for use with datatype-based viewers
  1333. (such as Multiview or ShowDT).  Available from AmiNet sites, file
  1334. /pub/aminet/util/wb/jfif_dtc.lha.
  1335.  
  1336. The free IJG JPEG software is available compiled for Amigas from AmiNet
  1337. sites, file /pub/aminet/gfx/conv/jpegV5Abin.lha.  These programs convert
  1338. JPEG to/from PPM, GIF, BMP, Targa formats.
  1339.  
  1340. If you have a DCTV box or a compatible display, try JPEGonDCTV.  Available
  1341. from AmiNet sites, file /pub/aminet/gfx/show/JPEGonDCTV100.lha.  Viewtek is
  1342. also reported to work well with DCTV.
  1343.  
  1344. ------------------------------
  1345.  
  1346. Subject: [10] Atari ST
  1347.  
  1348. GEM-View (shareware, $26) displays JPEG, GIF, and other image formats.
  1349. FTP from atari.archive.umich.edu:/atari/Graphics/Gemview/gview248.lzh.
  1350. This is a well regarded viewer.  The English documentation tends to be a
  1351. few versions behind, though.
  1352.  
  1353. For monochrome ST monitors, try MGIF, which manages to achieve four-level
  1354. gray-scale effect by flickering.  Version 4.2 loads JPEG files much faster
  1355. than 4.1 did.  FTP from atari.archive.umich.edu:/atari/Graphics/mgif42b.zoo.
  1356.  
  1357. The free IJG JPEG software is available compiled for Atari ST/TT/etc
  1358. from micros.hensa.ac.uk:/micros/atari/tos/p/p108/jpeg5abn.zoo.
  1359. These programs convert JPEG to/from PPM, GIF, BMP, Targa formats.
  1360.  
  1361. ------------------------------
  1362.  
  1363. Subject: [11] Acorn Archimedes
  1364.  
  1365. The Acorn archive at micros.hensa.ac.uk contains several JPEG-capable
  1366. programs.  Read the file micros.hensa.ac.uk:/micros/arch/riscos/index
  1367. for retrieval instructions.  Recommended archive entries include:
  1368.  
  1369. a022 Translator 7.18: image file format converter (shareware)
  1370. b008 FYEO 2.01: For Your Eyes Only, fast JPEG/GIF image viewer (shareware)
  1371. a110 JPEG 5.00: IJG v5 software (JPEG<=>PPM,GIF,Targa) w/ desktop front end
  1372.  
  1373. !ChangeFSI, supplied with RISC OS 3 version 3.10, can convert from and view
  1374. JPEG JFIF format.  Provision is also made to convert images to JPEG,
  1375. although this must be done from the CLI rather than by double-clicking.
  1376.  
  1377. ------------------------------
  1378.  
  1379. Subject: [12] NeXT
  1380.  
  1381. OmniImageFilter is a filter package that converts NeXTStep TIFF to and from
  1382. about 30 image formats.  It reads JPEG but does not write it.  It works with
  1383. most NeXTStep programs that handle drag-and-drop.  OmniImage is a simple
  1384. image viewer that uses the filter package.  Both are free.  Available from
  1385. ftp.omnigroup.com:/pub/software/OmniImageFilter-3.0.pkg.tar and
  1386. ftp.omnigroup.com:/pub/software/OmniImage-3.0.1.pkg.tar.
  1387.  
  1388. ImageViewer is a PD utility that displays images and can do some format
  1389. conversions.  The current version reads JPEG but does not write it.
  1390. ImageViewer is available from the NeXT archives at sonata.cc.purdue.edu and
  1391. cs.orst.edu:/pub/next/3.0/bin/ImageViewer0.9i.tar.Z.  Note that there
  1392. is an older version floating around that does not support JPEG.
  1393.  
  1394. NeXTStep includes built-in support for TIFF/JPEG, but not for the
  1395. Usenet-standard JFIF format.  Be warned that the TIFF/JPEG standard is
  1396. about to change away from the flavor currently produced by NeXTStep,
  1397. so compatibility with other platforms is doubtful.
  1398.  
  1399. ------------------------------
  1400.  
  1401. Subject: [13] Other systems
  1402.  
  1403. If you don't see what you want for your machine, check out the free IJG
  1404. source code described in the next section.  Assuming you have a C compiler
  1405. and at least a little knowledge of compiling C programs, you should be able
  1406. to prepare JPEG conversion programs from the source code.  You'll also need
  1407. a viewer program.  If your display is 8 bits or less, any GIF viewer will do
  1408.  
  1409. fine; if you have a display with more color capability, try to find a viewer
  1410.  
  1411. that can read Targa, BMP, or PPM 24-bit image files.
  1412.  
  1413. ------------------------------
  1414.  
  1415. Subject: [14] Freely available source code for JPEG
  1416.  
  1417. Free, portable C code for JPEG compression is available from the Independent
  1418. JPEG Group.  Source code, documentation, and test files are included.
  1419. Version 5a is available from ftp.uu.net:/graphics/jpeg/jpegsrc.v5a.tar.gz.
  1420. If you are on a PC you may prefer ZIP archive format, which you can find at
  1421. oak.oakland.edu:/SimTel/msdos/graphics/jpgsrc5a.zip (or at any Simtel mirror
  1422. site).  On CompuServe, see the GRAPHSUPPORT forum (GO GRAPHSUP), library 12,
  1423. file jpgs5a.zip.
  1424.  
  1425. The IJG code includes a reusable JPEG compression/decompression library,
  1426. plus sample applications "cjpeg" and "djpeg", which perform conversion
  1427. between JPEG JFIF format and image files in PPM/PGM (PBMPLUS), GIF, BMP,
  1428. Utah RLE, and Targa formats.  Two small applications "wrjpgcom" and
  1429. "rdjpgcom" insert and extract textual comments in JFIF files.
  1430. The package is highly portable; it has been used successfully on many
  1431. machines ranging from Apple IIs to Crays.
  1432.  
  1433. The IJG code is free for both noncommercial and commercial use; only an
  1434. acknowledgement in your documentation is required to use it in a product.
  1435. (See the README file in the distribution for details.)
  1436.  
  1437.  
  1438. A different free JPEG implementation, written by the PVRG group at Stanford,
  1439. is available from havefun.stanford.edu:/pub/jpeg/JPEGv1.2.tar.Z.  The PVRG
  1440. code is designed for research and experimentation rather than production
  1441.  
  1442. use; it is slower, harder to use, and less portable than the IJG code, but
  1443.  
  1444. the PVRG code is easier to understand.  Also, the PVRG code supports
  1445. lossless JPEG, while the IJG code does not.
  1446.  
  1447. ------------------------------
  1448.  
  1449. Subject: [15] Where are FAQ lists archived?
  1450.  
  1451. Many FAQs are crossposted to news.answers.  Well-run netnews sites will have
  1452. the latest versions available in that newsgroup.  However, there are a *lot*
  1453. of postings in news.answers, and they can be hard to sort through.
  1454.  
  1455. The latest versions of news.answers postings are archived at rtfm.mit.edu.
  1456. You can retrieve this FAQ by FTP as /pub/usenet/news.answers/jpeg-faq/part1
  1457. and /pub/usenet/news.answers/jpeg-faq/part2.  If you have no FTP access,
  1458. send e-mail to mail-server@rtfm.mit.edu containing the lines
  1459.   send usenet/news.answers/jpeg-faq/part1
  1460.   send usenet/news.answers/jpeg-faq/part2
  1461. (If you don't get a reply, the server may be misreading your return address;
  1462. add a line such as "path myname@mysite" to specify your correct e-mail
  1463. address to reply to.)  For more info about the FAQ archive, retrieve the
  1464. file rtfm.mit.edu:/pub/usenet/news.answers/news-answers/introduction.
  1465.  
  1466. The same FAQs are also available in the World Wide Web; see the index at
  1467.  
  1468. http://www.cis.ohio-state.edu/hypertext/faq/usenet/FAQ-List.html.  This FAQ
  1469.  
  1470. is http://www.cis.ohio-state.edu/hypertext/faq/usenet/jpeg-faq/top.html.
  1471.  
  1472. -- 
  1473.       tom lane
  1474.       organizer, Independent JPEG Group
  1475.       tgl@netcom.com or tgl@sss.pgh.pa.us
  1476.  
  1477.